package com.yupi.usercenter.exception;

import com.yupi.usercenter.base.model.RespCodeEnum;
import com.yupi.usercenter.base.model.ResultCodeEnum;
import com.yupi.usercenter.base.model.ServiceException;
import com.yupi.usercenter.common.ErrorCode;

public class BusinessException extends ServiceException {
    public BusinessException(ResultCodeEnum resultCode) {
        super(resultCode);
    }

    public BusinessException(RespCodeEnum resultCode) {
        super(resultCode);
    }

    public BusinessException(ErrorCode errorCode) {
        super(errorCode);
    }
    public BusinessException(ErrorCode errorCode,String msg) {
        super(errorCode,msg);
    }


    public BusinessException(Integer code, String msg) {
        super(code, msg);
    }

    public BusinessException(String msg) {
        super(msg);
    }

    public BusinessException(Throwable throwable) {
        super(throwable);
    }

    public BusinessException(String msg, Throwable throwable) {
        super(msg, throwable);
    }
}
